﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="AddFI.aspx.cs" Inherits="DengShijieShySharkWebApp.BM.AddFl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
BUSINESS MANAGER
    <style type="text/css">
        .auto-style1 {
            height: 22px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
    <asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#990000" Orientation="Horizontal" StaticSubMenuIndent="10px">
        <DynamicHoverStyle BackColor="#990000" ForeColor="White" />
        <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
        <DynamicMenuStyle BackColor="#FFFBD6" />
        <DynamicSelectedStyle BackColor="#FFCC66" />
        <Items>
            <asp:MenuItem NavigateUrl="~/BM/AddFI.aspx" Selected="True" Text="Add Flight" Value="Add Flight"></asp:MenuItem>
            <asp:MenuItem NavigateUrl="~/BM/RequestID.aspx" Text="RequestID" Value="RequestID"></asp:MenuItem>
            <asp:MenuItem NavigateUrl="~/BM/Reports.aspx" Text="Reports" Value="Reports"></asp:MenuItem>
            <asp:MenuItem NavigateUrl="~/BM/FrepFI.aspx" Text="Frequent Flyers" Value="Frequent Flyers"></asp:MenuItem>
        </Items>
        <StaticHoverStyle BackColor="#990000" ForeColor="White" />
        <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
        <StaticSelectedStyle BackColor="#FFCC66" />
    </asp:Menu>
    <div class="tabContents">
        <table>
            <tr>
                <td colspan="3"><h1>Add New Flight</h1></td>
                <td></td>
                <td></td>
            </tr>
                        <tr>
                <td colspan="3">
                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label></td>
            <td>
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/ChangePassword.aspx">Change password</asp:HyperLink>
                        </td>
            <td>
                <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/logoff.aspx">logoff</asp:HyperLink>
                        </td>
            </tr>
                        <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Flight Number"></asp:Label>
                            </td>
                <td>
                    <asp:TextBox ID="txtFlightNumber" runat="server"></asp:TextBox>
                            </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFlightNumber" ErrorMessage="Required Flight Number" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
            </tr>
            <tr>
               <td>
                   <asp:Label ID="Label2" runat="server" Text="Departuer Time"></asp:Label>
                           </td>
               <td>
                   <asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
                   <asp:TextBox ID="txtDepartureTime" runat="server"></asp:TextBox>(HH:MM)
                           </td>
               <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDepartureTime" ErrorMessage="Required Departuer time" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </td>
           </tr>
                        <tr>
               <td>
                   <asp:Label ID="Label3" runat="server" Text="Origin"></asp:Label>
                           </td>
               <td>
                   <asp:TextBox ID="txtOrigin" runat="server"></asp:TextBox>
                           </td>
               <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtOrigin" ErrorMessage="Required Origin" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
           </tr>
                        <tr>
               <td>
                   <asp:Label ID="Label4" runat="server" Text="Arrivel Time"></asp:Label>
                           </td>
               <td>
                   <asp:Calendar ID="Calendar2" runat="server"></asp:Calendar>
                   <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ARPDatabaseConnectionString %>" ProviderName="<%$ ConnectionStrings:ARPDatabaseConnectionString.ProviderName %>" SelectCommand="SELECT [FltNo], [Origin], [Deptime], [Destination], [Arrtime], [SeatsExec], [AircraftType], [SeatsBn], [FareExec], [FareBn], [LaunchDate] FROM [dtFltDetails]"></asp:SqlDataSource>
                   <asp:TextBox ID="txtArrivelTime" runat="server"></asp:TextBox>(HH:MM)
                           </td>
               <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtArrivelTime" ErrorMessage="Required Arrivel time" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
           </tr>
                        <tr>
               <td>
                   <asp:Label ID="Label5" runat="server" Text="Destination"></asp:Label>
                           </td>
               <td>
                   <asp:TextBox ID="txtDestination" runat="server"></asp:TextBox>
                           </td>
               <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtDestination" ErrorMessage="Required Destination" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
           </tr>
                        <tr>
               <td>
                   <asp:Label ID="Label6" runat="server" Text="Aircraft Type"></asp:Label>
                           </td>
               <td>
                   <asp:TextBox ID="txtAircraftType" runat="server"></asp:TextBox>
                           </td>
               <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtAircraftType" ErrorMessage="Required Aircraft Type" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
           </tr>
                        <tr>
               <td>
                   <asp:Label ID="Label7" runat="server" Text="Number of Seats(Executive)"></asp:Label>
                           </td>
               <td>
                   <asp:TextBox ID="txtNoOfExecSeats" runat="server"></asp:TextBox>
                           </td>
               <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtNoOfExecSeats" ErrorMessage="Required Number of seat（Exec）" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
           </tr>
                        <tr>
               <td>
                   <asp:Label ID="Label8" runat="server" Text="Executive Class Fares"></asp:Label>
                           </td>
               <td>
                   <asp:TextBox ID="txtExecFare" runat="server"></asp:TextBox>
                           </td>
               <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtExecFare" ErrorMessage="Required Exec Class Fare" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
           </tr>
                        <tr>
               <td>
                   <asp:Label ID="Label9" runat="server" Text="Number of Seats(Business)"></asp:Label>
                           </td>
               <td>
                   <asp:TextBox ID="txtNoOfBussSeats" runat="server"></asp:TextBox>
                           </td>
               <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtNoOfBussSeats" ErrorMessage="Required Number of Seats(Buss)" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
           </tr>
                        <tr>
               <td>
                   <asp:Label ID="Label10" runat="server" Text="Business Class Fares"></asp:Label>
                           </td>
               <td>
                   <asp:TextBox ID="txtBussFare" runat="server"></asp:TextBox>
                           </td>
               <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtBussFare" ErrorMessage="Required Buss Class Fare" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
           </tr>

                        <tr>
                <td></td>
                <td>
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                    <asp:Button ID="btnCancle" runat="server" Text="Cancle" OnClick="btnCancle_Click" />
                            </td>
                <td></td>
            </tr>
                        <tr>
                <td></td>
                <td></td>
                <td></td>
            </tr>
                        <tr>
                <td class="auto-style1"></td>
                <td class="auto-style1"></td>
                <td class="auto-style1"></td>
            </tr>
                        <tr>
                <td></td>
                <td></td>
                <td></td>
            </tr>
                        <tr>
                <td></td>
                <td></td>
                <td></td>
            </tr>

        </table>
    </div>
    </form>
</asp:Content>
